import sbt._
import Keys._

/*
 * https://github.com/harrah/xsbt/wiki/Getting-Started-Library-Dependencies
 */

object MyBuild extends Build {

  lazy val tucows = Project("mail-gate", file(".")) settings (
    version := "1.8",
    //http://stackoverflow.com/questions/7371802/sbt-to-exclude-source-directory
    unmanagedSourceDirectories in Compile <<= (scalaSource in Compile)(_ :: Nil),
    unmanagedJars in Compile <++= baseDirectory map { base =>
      val baseDirectories = (base / "dependencies")
      val customJars = (baseDirectories ** "*.jar")
      customJars.classpath
    },
    libraryDependencies := Seq(
      "junit" % "junit" % "4.8" % "test",
      "org.scala-lang" % "scala-swing" % "2.9.1"
    ),
    scalacOptions ++= Seq("-unchecked", "-deprecation"))
}
